package com.gc.business.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.gc.common.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 电梯保养计划表 gc_upkeep_plan
 * 
 * @author hruiyan
 * @date 2020-11-19
 */
@EqualsAndHashCode(callSuper = true)
@ToString
@Data
@Accessors(chain = true)
@TableName("gc_upkeep_plan")
public class UpkeepPlan extends BaseEntity{
    private static final long serialVersionUID = 1L;

    @TableId
    private Long planId;

    /**
     * 电梯实体对象
     */
    @TableField(exist = false)
    private ElevatorInfo elevatorInfo;

    /**
     * 关联的公司Id
     */
    @TableField(exist = false)
    private Long companyId;
	
    /**
    * 关联电梯ID
    */
    private Long elevatorId;
    /**
    * 关联模板ID
    */
    private Long templateId;
    /**
    * 保养类型
    */
    private String upkeepType;
    /**
    * 保养间隔
    */
    private Integer upkeepInterval;
    /**
    * 首次保养时间
    */
    private String firstUpkeepTime;

    /**
     * 最近一次保养时间
     */
    private String recentlyTime;
    /**
    * 保养提醒天数
    */
    private Integer remindDay;
}
